import request from '@/utils/request'

import type {
	getRealNameInfoParams
} from '@/types'

// 查询用户个人信息
export const getUserProfile = () => {
	return request({
		url: '/system/currentUserInfo',
		method: 'get',
	})
}

// 查询用户角色
export const getRole = () => {
	return request({
		url: '/app/role',
		method: 'get',
	})
}

// 获取个人核身的id和token
export const getRealNameInfo = (data:getRealNameInfoParams) => {
	return request({
		url: '/app/user/individualFace',
		method: 'get',
		data
	})
}